package com.tsvetanv.data.binding.model.nested;

import java.util.ArrayList;
import java.util.List;


public class NestedCollectionsCommandBean {
	List<Name> names = new ArrayList<Name>();

	public NestedCollectionsCommandBean() {

		// Just like nested classes, the object in the collection that you are
		// attempting to set a property value on must not be null. This means
		// that, before binding, you must not only initialize the collection,
		// but populate it with objects.

		names.add(new Name());
		names.add(new Name());
	}

	public List<Name> getNames() {
		return names;
	}

	public void setNames(List<Name> names) {
		this.names = names;
	}

}
